﻿<div ng-controller="HomeController">
    <h1>Home Page</h1> 
    <div ng-show="!status.loggedin" class="form-group">
        <label class="control-label">Username</label>
        <input class="form-control" ng-model="user.username" placeholder="Enter username..."/> <br />
        <label class="control-label">Password</label>
        <input class="form-control" ng-model="user.password" placeholder="Enter password..." /> <br />
        <button class="btn btn-info" ng-click="login()">Log In</button>
    </div>
    <div ng-show="status.loggedin">
        <h1>Welcome {{userInfo.Username}}</h1>
        <h3>Your email is: {{userInfo.Email}}</h3>
        <button class="btn btn-danger" ng-click="logout()">Log Out</button>
    </div>
</div>